import React from 'react';
import { Link } from 'react-router-dom';
class Title extends React.Component{
    constructor(props){
        super(props);
        this.state={

        }
    }
    gopage(){
        this.props.url&& this.props.goPage(this.props.url)
    }
    render(){
        return(
            <ul className="underline"  onClick={e=>{this.gopage(e)}}>
            <div className="order-head flex">
                <i className={` iconfont  max mr10 ml10 ${this.props.ico}`} >
                </i>
                <div className="cell-main xl">
                    {this.props.name}
                </div>
                <div>
                {this.props.more?<div className="hui l">{this.props.more}<i className="iconfont icon-more hui"></i></div>
                : ''}
                </div>
            </div>
        </ul>
        )
    }
}
export default Title;